package com.astar.mapper;

import com.astar.entity.CustomMenu;
import com.astar.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-01-17
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> selectAll();

    Menu selectOneById(Integer id);

    CustomMenu selectOne1(Integer id);

    List<CustomMenu> selectChile(Integer parentId);

    List<CustomMenu> selectMenus();





}
